package com.作业.Day12;

import java.util.ArrayList;
import java.util.List;

public class Homework1 {
    public static void main(String[] args) {
        List arrayList = new ArrayList();
        System.out.println("共有四只企鹅");
        arrayList.add("欧欧 Q仔");
        arrayList.add("亚亚 Q妹");
        arrayList.add("菲菲 Q妹");
        arrayList.add("美美 Q妹");
        System.out.println("分别是");
        for (Object o : arrayList) {
            System.out.println(o);
        }

        System.out.println("删除后还有两只企鹅");
        arrayList.remove(2);
        arrayList.remove(2);
        for (Object o : arrayList) {
            System.out.println(o);
        }
        System.out.println("集合中不包括美美信息");


    }
}
